﻿<UserControl
	xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
	xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
	xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
	xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
	mc:Ignorable="d"
	x:Class="Chess.MoveCounter"
	x:Name="UserControl" Width="72" Height="72">
	<UserControl.Resources>
		<Storyboard x:Key="ScrollUp" >
			<DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="text2" Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[3].(TranslateTransform.Y)">
				<SplineDoubleKeyFrame KeyTime="00:00:00" Value="62"/>
				<SplineDoubleKeyFrame KeyTime="00:00:01" Value="0" KeySpline="0.75,0,0.66,0.57"/>
			</DoubleAnimationUsingKeyFrames>
			<DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="text1" Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[3].(TranslateTransform.Y)">
				<SplineDoubleKeyFrame KeyTime="00:00:00" Value="0"/>
				<SplineDoubleKeyFrame KeyTime="00:00:01" Value="-62" KeySpline="0.75,0,0.66,0.57"/>
			</DoubleAnimationUsingKeyFrames>
		</Storyboard>
		<Storyboard x:Key="ScrollDown">
			<DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="text2" Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[3].(TranslateTransform.Y)">
				<SplineDoubleKeyFrame KeyTime="00:00:00" Value="-62"/>
				<SplineDoubleKeyFrame KeyTime="00:00:01" Value="0" KeySpline="0.75,0,0.66,0.57"/>
			</DoubleAnimationUsingKeyFrames>
			<DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="text1" Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[3].(TranslateTransform.Y)">
				<SplineDoubleKeyFrame KeyTime="00:00:00" Value="0"/>
				<SplineDoubleKeyFrame KeyTime="00:00:01" Value="62" KeySpline="0.75,0,0.66,0.57"/>
			</DoubleAnimationUsingKeyFrames>
		</Storyboard>
	</UserControl.Resources>
	<UserControl.Triggers>
		<EventTrigger RoutedEvent="FrameworkElement.Loaded"/>
	</UserControl.Triggers>

	<Grid x:Name="LayoutRoot" ClipToBounds="True">
		<Rectangle Fill="White" RadiusX="12" RadiusY="9"/>
		<TextBlock x:Name="text1" HorizontalAlignment="Center" VerticalAlignment="Center" FontFamily="{DynamicResource MV Boli font}" FontSize="32" TextAlignment="Center" RenderTransformOrigin="0.5,0.5" Margin="0,0,3,0"><TextBlock.RenderTransform>
				<TransformGroup>
					<ScaleTransform/>
					<SkewTransform/>
					<RotateTransform/>
					<TranslateTransform/>
				</TransformGroup>
			</TextBlock.RenderTransform><Run Text="0"/></TextBlock>
		<TextBlock x:Name="text2" HorizontalAlignment="Center" VerticalAlignment="Center" FontFamily="{DynamicResource MV Boli font}" FontSize="32" Text="0" TextAlignment="Center" RenderTransformOrigin="0.5,0.5" Margin="0,0,3,0">
			<TextBlock.RenderTransform>
				<TransformGroup>
					<ScaleTransform/>
					<SkewTransform/>
					<RotateTransform/>
					<TranslateTransform/>
				</TransformGroup>
			</TextBlock.RenderTransform>
		</TextBlock>
		<Rectangle Fill="{DynamicResource GlassShine}" RadiusX="12" RadiusY="9"/>
		<Rectangle Stroke="Black" StrokeThickness="3" HorizontalAlignment="Right" Margin="0" VerticalAlignment="Bottom" Width="72" Height="72" RadiusX="12" RadiusY="9">
			<Rectangle.Effect>
				<BlurEffect/>
			</Rectangle.Effect>
		</Rectangle>
	</Grid>
</UserControl>